package com.azxc.rapid.plus.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author linym
 * @className: WestoneVersion
 * @description:
 * @date 2023/1/30 12:17
 * @version：1.0
 */
@Data
@TableName("rapid_westone_send_msg")
@ApiModel(value = "WestoneSendMsg对象", description = "卫士通-推送信息表")
public class WestoneSendMsg {

	@JsonSerialize(
		using = ToStringSerializer.class
	)
	@ApiModelProperty("主键id")
	@TableId(
		value = "id",
		type = IdType.ASSIGN_ID
	)
	private Long  id;


	@ApiModelProperty(value = "集团id")
	private String	groupEnterpriseId;


	@ApiModelProperty(value = "消息推送类型，MOBILE或者ACCOUNT。不传的话默认为MOBILE类型,MOBILE：按照手机号推送。ACCOUNT：按照账号id推送。")
	private String	type;

	@ApiModelProperty(value = "接收消息的用户id或手机号")
	private String	recipients;

	@ApiModelProperty(value = "发送的消息体")
	private String content;

	@ApiModelProperty(value = "返回的结果")
	private String	reMsg;

	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty("创建时间")
	private Date createTime;
}
